package cn.sofwin.day0105;
import java.util.*;

public class Test04 {
    public static void main(String[] args){
        Scanner in = new Scanner(System.in);

        System.out.println("请输入Java课的成绩：");
        double java = in.nextDouble();

        System.out.println("请输入sql课的成绩：");
        double sql = in.nextDouble();

        System.out.println("请输入web课成绩：");
        double web = in.nextDouble();

        System.out.println("Java与sql的成绩差为："+(java-sql));
        System.out.println("三门课的平均成绩为："+(java+sql+web)/3);
    }
}
